package com.lqm.util;

import com.lqm.dao.AdminConfigDao;
import com.lqm.entity.admin.AdminConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @program: CrowdFunding
 * @description
 * @author: lqm
 * @create: 2018-12-05 21:17
 */

@Component
public class WebConfigUtil {


    private static AdminConfigDao adminConfigDao;

    @Autowired
    public void setAdminConfigDao(AdminConfigDao adminConfigDao) {
        WebConfigUtil.adminConfigDao = adminConfigDao;
    }

    static public AdminConfig getAdminConfig(String name) {
        return adminConfigDao.getAdminConfigByName(name);
    }
}
